-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 opened on:   9 May 2024, 14:27:46

. 
. 
. /*
>         FIGURES IN TABLES IN THE PAPER
> */
. 
. 
. log off
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 paused on:   9 May 2024, 14:27:46
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
resumed on:   9 May 2024, 14:27:46

. 
. display "" _newline "TABLE 1" _newline "Label     | # Goods | Information/Protocol        | Subjects (sessions)" _newline "------------------------------------
> -----------------------------------" _newline "1-IN-OBO  | 1       | Independent one-by-one      | " scalar(t1_r1_c1) " (" scalar(t1_r1_c2) ")             " _n
> ewline "1-IN-FF   | 1       | Independent free-form       | " scalar(t1_r2_c1) " (" scalar(t1_r2_c2) ")             " _newline "4-IN-FF   | 4       | Independe
> nt free-form       | " scalar(t1_r6_c1) " (" scalar(t1_r6_c2) ")             " _newline "4-KF-FF   | 4       | Known frequencies free-form | " scalar(t1_r7_c1)
>  " (" scalar(t1_r7_c2) ")             " _newline "4-KS-OBO  | 4       | Known surplus one-by-one    | " scalar(t1_r3_c1) " (" scalar(t1_r3_c2) ")             "
>  _newline "4-KS-Comb | 4       | Known surplus combinatorial | " scalar(t1_r4_c1) " (" scalar(t1_r4_c2) ")             " _newline "4-KS-FF   | 4       | Known 
> surplus free form     | " scalar(t1_r5_c1) " (" scalar(t1_r5_c2) ")             "

TABLE 1
Label     | # Goods | Information/Protocol        | Subjects (sessions)
-----------------------------------------------------------------------
1-IN-OBO  | 1       | Independent one-by-one      | 94 (4)             
1-IN-FF   | 1       | Independent free-form       | 88 (5)             
4-IN-FF   | 4       | Independent free-form       | 82 (5)             
4-KF-FF   | 4       | Known frequencies free-form | 82 (5)             
4-KS-OBO  | 4       | Known surplus one-by-one    | 78 (4)             
4-KS-Comb | 4       | Known surplus combinatorial | 96 (6)             
4-KS-FF   | 4       | Known surplus free form     | 86 (5)             

. 
. log off
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 paused on:   9 May 2024, 14:27:46
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
resumed on:   9 May 2024, 14:27:46

. 
. display "" _newline "TABLE 2" _newline "Treatment Description                | Fraction of surplus realized   " _newline "-------------------------------------
> ----------------------------------------" _newline "4-KS-OneByOne                        | " scalar(t2_r1_c2_1) " (" scalar(t2_r1_c2_2) ")" _newline "4-KS-Comb
> inat                        | " scalar(t2_r2_c2_1) " (" scalar(t2_r2_c2_2) ")" _newline "4-KS-FreeForm                        | " scalar(t2_r3_c2_1) " (" scala
> r(t2_r3_c2_2) ")" _newline "-----------------------------------------------------------------------------" _newline "p-value row 1 vs row 2  " "             | 
> " scalar(t2_r4_c2) "                   " _newline "p-value row 2 vs row 3   " "            | " scalar(t2_r5_c2) "   

TABLE 2
Treatment Description                | Fraction of surplus realized   
-----------------------------------------------------------------------------
4-KS-OneByOne                        | .784 (.023)
4-KS-Combinat                        | .857 (.047)
4-KS-FreeForm                        | .935 (.044)
-----------------------------------------------------------------------------
p-value row 1 vs row 2               | .006                   
p-value row 2 vs row 3               | .01

. 
. * display "" _newline "TABLE 2 + TABLE 5" _newline "Treatment Description  | 1 good      | 4 goods known surplus | p-value" _newline "-------------------------
> ----------------------------------------------------" _newline "Structured one-by-one  | " scalar(t2_r1_c1_1) " (" scalar(t2_r1_c1_2) ") | " scalar(t2_r1_c2_1)
>  " (" scalar(t2_r1_c2_2) ")           | " scalar(t2_r1_c3) _newline "Structured deals       | " scalar(t2_r2_c1_1) " (" scalar(t2_r2_c1_2) ") | " scalar(t2_r2_
> c2_1) " (" scalar(t2_r2_c2_2) ")           | " scalar(t2_r2_c3) _newline "Free form              | " scalar(t2_r3_c1_1) " (" scalar(t2_r3_c1_2) ") | " scalar(t
> 2_r3_c2_1) " (" scalar(t2_r3_c2_2) ")           | " scalar(t2_r3_c3) _newline "-----------------------------------------------------------------------------" _
> newline "p-value row 1 vs row 2 |" " N/A         | " scalar(t2_r4_c2) "                  |" _newline "p-value row 2 vs row 3 | " scalar(t2_r5_c1) "         | "
>  scalar(t2_r5_c2) "                   |" _newline "-----------------------------------------------------------------------------" _newline "p-value row 2 = 1 (
> 4 goods, 1-tailed) " scalar(t2_extra_1) _newline "p-value row 3 = 1 (4 goods, 1-tailed) " scalar(t2_extra_2) 
. 
. log off
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 paused on:   9 May 2024, 14:27:46
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
resumed on:   9 May 2024, 14:27:46

. 
. display "" _newline "TABLE 3" _newline "Treatment                                         | Fraction of Surplus Realized" _newline "---------------------------
> -----------------------------------" _newline " 4-IN-FreeForm                                    | " scalar(t3_r2_1) " (" scalar(t3_r2_2) ")" _newline " 4-KF-F
> reeForm                                    | " scalar(t3_r3_1) " (" scalar(t3_r3_2) ")" _newline " 4-KS-FreeForm                                    | " scalar(
> t3_r4_1) " (" scalar(t3_r4_2) ")" _newline "--------------------------------------------------------------" _newline "p-value row 1 vs row 2                   
>          | " scalar(t3_r5) _newline "p-value row 2 vs row 3                            | " scalar(t3_r6) 

TABLE 3
Treatment                                         | Fraction of Surplus Realized
--------------------------------------------------------------
 4-IN-FreeForm                                    | .829 (.035)
 4-KF-FreeForm                                    | .901 (.018)
 4-KS-FreeForm                                    | .935 (.044)
--------------------------------------------------------------
p-value row 1 vs row 2                            | .003
p-value row 2 vs row 3                            | .085

. 
. display "" _newline "TABLE 4" _newline "Treatment                                         | Fraction of Surplus Realized" _newline "---------------------------
> -----------------------------------" _newline " 1-IN-FreeForm                                    | " scalar(t3_r1_1) " (" scalar(t3_r1_2) ")" _newline " 4-IN-F
> reeForm                                    | " scalar(t3_r2_1) " (" scalar(t3_r2_2) ")" _newline "-------------------------------------------------------------
> -" _newline "p-value row 1 vs row 2                            | " scalar(t3_r7)  

TABLE 4
Treatment                                         | Fraction of Surplus Realized
--------------------------------------------------------------
 1-IN-FreeForm                                    | .737 (.071)
 4-IN-FreeForm                                    | .829 (.035)
--------------------------------------------------------------
p-value row 1 vs row 2                            | .021

. 
. display "" _newline "TABLE 5" _newline "Treatment Description  | 1 good      | 4 goods known surplus | p-value" _newline "-------------------------------------
> ----------------------------------------" _newline "One-by-one             | " scalar(t2_r1_c1_1) " (" scalar(t2_r1_c1_2) ") | " scalar(t2_r1_c2_1) " (" scalar
> (t2_r1_c2_2) ")           | " scalar(t2_r1_c3) _newline "Free-form              | " scalar(t2_r3_c1_1) " (" scalar(t2_r3_c1_2) ") | " scalar(t2_r3_c2_1) " (" s
> calar(t2_r3_c2_2) ")           | " scalar(t2_r3_c3) _newline "-----------------------------------------------------------------------------" _newline "p-value 
> row 1 vs row 2 |" scalar(t2_r5_c1) "          | " scalar(t2_r4_c2) "                  |"

TABLE 5
Treatment Description  | 1 good      | 4 goods known surplus | p-value
-----------------------------------------------------------------------------
One-by-one             | .672 (.083) | .784 (.023)           | .034
Free-form              | .737 (.071) | .935 (.044)           | .001
-----------------------------------------------------------------------------
p-value row 1 vs row 2 |.13          | .006                  |

. 
. * display "" _newline "TABLE 3 + TABLE 4" _newline "Treatment | # Goods | Format                      | Efficiency" _newline "---------------------------------
> -----------------------------" _newline " 2        | 1       | Free-form, unknown          | " scalar(t3_r1_1) " (" scalar(t3_r1_2) ")" _newline " 6        | 4
>        | Free-form, deals, IID       | " scalar(t3_r2_1) " (" scalar(t3_r2_2) ")" _newline " 7        | 4       | Free-form, deals, known frq | " scalar(t3_r3_
> 1) " (" scalar(t3_r3_2) ")" _newline " 5        | 4       | Free-form, deals, known     | " scalar(t3_r4_1) " (" scalar(t3_r4_2) ")" _newline "----------------
> ----------------------------------------------" _newline "p-value row 2 vs row 3 | " scalar(t3_r5) _newline "p-value row 3 vs row 4 | " scalar(t3_r6) _newline 
> "p-value row 1 vs row 2 | " scalar(t3_r7)
. 
. log off
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 paused on:   9 May 2024, 14:27:46
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
resumed on:   9 May 2024, 14:27:46

. 
. display "" _newline "TABLE 6" _newline "Format                      | Efficiency (p-value vs 1 good) | Trade % (p-value vs 1 good)" _newline "-----------------
> ---------------------------------------------------------" _newline "1-IN-OneByOne               | " scalar(t4_r1_c1) "                           | " scalar(t4
> _r1_c3) _newline "1-IN-FreeForm               | " scalar(t4_r2_c1) "                           | " scalar(t4_r2_c3) _newline "4-KS-OneByOne               | " s
> calar(t4_r3_c1) " (" scalar(t4_r3_c2) ")                    | " scalar(t4_r3_c3) " (" scalar(t4_r3_c4) ")" _newline "4-IN-FreeForm               | " scalar(t4_
> r5_c1) " (" scalar(t4_r5_c2) ")                    | " scalar(t4_r5_c3) " (" scalar(t4_r5_c4) ")" _newline "4-KS-Combinat               | " scalar(t4_r4_c1) " 
> (" scalar(t4_r4_c2) ")                    | " scalar(t4_r4_c3) " (" scalar(t4_r4_c4) ")" _newline "4-KF-FreeForm               | " scalar(t4_r6_c1) " (" scalar
> (t4_r6_c2) ")                    | " scalar(t4_r6_c3) " (" scalar(t4_r6_c4) ")" _newline "4-KS-FreeForm               | " scalar(t4_r7_c1) " (" scalar(t4_r7_c2
> ) ")                    | " scalar(t4_r7_c3) " (" scalar(t4_r7_c4) ")"

TABLE 6
Format                      | Efficiency (p-value vs 1 good) | Trade % (p-value vs 1 good)
--------------------------------------------------------------------------
1-IN-OneByOne               | .672                           | .872
1-IN-FreeForm               | .737                           | .867
4-KS-OneByOne               | .784 (.034)                    | .949 (.048)
4-IN-FreeForm               | .829 (.021)                    | .967 (.004)
4-KS-Combinat               | .857 (.007)                    | .975 (.021)
4-KF-FreeForm               | .901 (.003)                    | 1 (.002)
4-KS-FreeForm               | .935 (.001)                    | .996 (.002)

. 
. log off
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 paused on:   9 May 2024, 14:27:46
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
resumed on:   9 May 2024, 14:27:46

. 
. * display "" _newline "TABLE 5a" _newline "" _newline "Period                    | ""1    | 2    | 3    | 4    | 5    | 6    | 7    | 8    | No trade" _newline
>  "---------------------------------------------------------------------------------------------" _newline "1 good structured         | " scalar(t13_1) " | " sc
> alar(t13_2) " | " scalar(t13_3) " | " scalar(t13_4) " | " scalar(t13_5) " | " scalar(t13_6) " | " scalar(t13_7) " | " scalar(t13_8) " | " scalar(t13_9) _newlin
> e "1 good free-form          | " scalar(t14_1) " | " scalar(t14_2) " | " scalar(t14_3) " | " scalar(t14_4) " | " scalar(t14_5) " | " scalar(t14_6) " | " scalar
> (t14_7) " | " scalar(t14_8) " | " scalar(t14_9) _newline "4 goods one-by-one        | " scalar(t61_1) " | " scalar(t61_2) " | " scalar(t61_3) " | " scalar(t61_
> 4) " | " scalar(t61_5) "  | " scalar(t61_6) " | " scalar(t61_7) " | " scalar(t61_8) " | " scalar(t61_9) _newline "4 goods structured, deals | " scalar(t21_1) "
>   | " scalar(t21_2) " | " scalar(t21_3) "  | " scalar(t21_4) " | " scalar(t21_5) " | " scalar(t21_6) " | " scalar(t21_7) " | " scalar(t21_8) "    | " scalar(t2
> 1_9) _newline "4 goods free-form, IID    | "  scalar(t41_1) " | " scalar(t41_2) " | " scalar(t41_3) " | " scalar(t41_4) " | " scalar(t41_5) " | " scalar(t41_6)
>  " | " scalar(t41_7) " | " scalar(t41_8) " | " scalar(t41_9) _newline "4 goods free-form, known f| "  scalar(t51_1) " | " scalar(t51_2) " | " scalar(t51_3) " |
>  " scalar(t51_4) " | " scalar(t51_5) " | " scalar(t51_6) "    | " scalar(t51_7) " | " scalar(t51_8) " | " scalar(t51_9) _newline "4 goods free-form         | "
>   scalar(t22_1) " | " scalar(t22_2) " | " scalar(t22_3) " | " scalar(t22_4) " | " scalar(t22_5) " | " scalar(t22_6) " | " scalar(t22_7) "    | " scalar(t22_8) 
> "    | " scalar(t22_9)
. 
. log off
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 paused on:   9 May 2024, 14:27:46
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
resumed on:   9 May 2024, 14:27:46

. 
. display "" _newline "TABLE 7" _newline "" _newline "Period                    | ""1    | 2    | 3    | 4    | 5    | 6    | 7    | 8    | No trade" _newline "-
> -----------------------------------------------------------------------------------------" _newline "1-IN-OneByOne             | " scalar(t13_1) " | " scalar(t
> 13_2) " | " scalar(t13_3) " | " scalar(t13_4) " | " scalar(t13_5) " | " scalar(t13_6) " | " scalar(t13_7) " | " scalar(t13_8) " | " scalar(t13_9) _newline "1-I
> N-FreeForm             | " scalar(t14_1) " | " scalar(t14_2) " | " scalar(t14_3) " | " scalar(t14_4) " | " scalar(t14_5) " | " scalar(t14_6) " | " scalar(t14_7
> ) " | " scalar(t14_8) " | " scalar(t14_9) _newline "4-KS-OneByOne             | " scalar(t61b_1) " | " scalar(t61b_2) " | " scalar(t61b_3) " | " scalar(t61b_4)
>  " | " scalar(t61b_5) " | " scalar(t61b_6) " | " scalar(t61b_7) " | " scalar(t61b_8) "  | " scalar(t61b_9) _newline "4-IN-FreeForm             | "  scalar(t41b
> _1) " | " scalar(t41b_2) " | " scalar(t41b_3) " | " scalar(t41b_4) " | " scalar(t41b_5) " | " scalar(t41b_6) " | " scalar(t41b_7) " | " scalar(t41b_8) "  | " s
> calar(t41b_9) _newline "4-KS-Combinat             | " scalar(t21b_1) " | " scalar(t21b_2) " | " scalar(t21b_3) " | " scalar(t21b_4) " | " scalar(t21b_5) " | " 
> scalar(t21b_6) " | " scalar(t21b_7) " | " scalar(t21b_8) " | " scalar(t21b_9) _newline "4-KF-FreeForm             | "  scalar(t51b_1) " | " scalar(t51b_2) "  |
>  " scalar(t51b_3) " | " scalar(t51b_4) " | " scalar(t51b_5) " | " scalar(t51b_6) "    | " scalar(t51b_7) " | " scalar(t51b_8) " | " scalar(t51b_9) _newline "4-
> KS-FreeForm             | "  scalar(t22b_1) "   | " scalar(t22b_2) " | " scalar(t22b_3) " | " scalar(t22b_4) " | " scalar(t22b_5) "  | " scalar(t22b_6) " | " s
> calar(t22b_7) "    | " scalar(t22b_8) "    | " scalar(t22b_9)

TABLE 7

Period                    | 1    | 2    | 3    | 4    | 5    | 6    | 7    | 8    | No trade
------------------------------------------------------------------------------------------
1-IN-OneByOne             | .095 | .128 | .109 | .104 | .109 | .128 | .081 | .118 | .128
1-IN-FreeForm             | .221 | .195 | .118 | .108 | .072 | .036 | .031 | .087 | .133
4-KS-OneByOne             | .392 | .237 | .123 | .057 | .036 | .025 | .018 | .01  | .101
4-IN-FreeForm             | .371 | .255 | .121 | .052 | .038 | .019 | .014 | .02  | .11
4-KS-Combinat             | .526 | .233 | .072 | .048 | .019 | .014 | .017 | .005 | .067
4-KF-FreeForm             | .617 | .18  | .081 | .045 | .012 | 0    | .006 | .006 | .053
4-KS-FreeForm             | .8   | .101 | .017 | .015 | .01  | .009 | 0    | 0    | .048

. 
. 
. * Table 8
. 
. clear

. use bargaining_data_truth_1

. 
. * TABLE 8 ROW 1
. list bargain_round total_obs_by_br total_untrue_by_br if data == 1

     +--------------------------------+
     | bargai~d   ~s_by_br   total_.. |
     |--------------------------------|
  1. |        1        385         97 |
386. |        2         85         24 |
471. |        3         52         13 |
523. |        4         37         14 |
560. |        5         24          6 |
     |--------------------------------|
584. |        6         22          2 |
606. |        7         10          1 |
616. |        8         15          2 |
     +--------------------------------+

. sum z_1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
         z_1 |          8     .252381           0    .252381    .252381

. 
. clear

. use bargaining_data_truth_4

. 
. * TABLE 8 ROW 2
. list bargain_round total_obs_by_br total_untrue_by_br if data == 1 & Treatment == 22

      +--------------------------------+
      | bargai~d   ~s_by_br   total_.. |
      |--------------------------------|
   1. |        1        199          4 |
 200. |        2          2          0 |
 202. |        3          1          0 |
      +--------------------------------+

. sum z_2

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
         z_2 |          3     .019802           0    .019802    .019802

. 
. * TABLE 8 ROW 3
. list bargain_round total_obs_by_br total_untrue_by_br if data == 1 & Treatment == 41

      +--------------------------------+
      | bargai~d   ~s_by_br   total_.. |
      |--------------------------------|
 203. |        1        431         83 |
 634. |        2          6          2 |
 640. |        3          4          3 |
 644. |        4          1          0 |
 645. |        5          1          0 |
      +--------------------------------+

. sum z_3

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
         z_3 |          5    .1986456           0   .1986456   .1986456

. 
. * TABLE 8 ROW 4
. list bargain_round total_obs_by_br total_untrue_by_br if data == 1 & Treatment == 51

      +--------------------------------+
      | bargai~d   ~s_by_br   total_.. |
      |--------------------------------|
 646. |        1        439          8 |
1085. |        2          4          0 |
1089. |        5          1          0 |
1090. |        6          1          0 |
      +--------------------------------+

. sum z_4

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
         z_4 |          4    .0179775           0   .0179775   .0179775

. 
. clear

. use bargaining_data

.         
. /*
>         FIGURES IN TABLES IN THE APPENDIX
> */
. 
. 
. * Table 2.1.1a/b
. 
. list session treatment alternating goods surplus_known subjects_session if data_session == 1

      +-------------------------------------------------------------+
      | session   treatm~t   altern~g   goods   surplu~n   subjec~n |
      |-------------------------------------------------------------|
   1. |       1         14          0       1          1          8 |
  20. |       2         22          0       4          1         10 |
  50. |       3         21          1       4          1         20 |
 110. |       4         13          1       1          1         24 |
 182. |       5         22          0       4          1         22 |
      |-------------------------------------------------------------|
 248. |       6         13          1       1          1         24 |
 320. |       7         14          0       1          1         20 |
 380. |       8         21          1       4          1         24 |
 448. |       9         21          1       4          1         14 |
 490. |      10         13          1       1          1         24 |
      |-------------------------------------------------------------|
 562. |      11         14          0       1          1         24 |
 634. |      12         22          0       4          1         22 |
 700. |      13         22          0       4          1         20 |
 760. |      14         14          0       1          1         24 |
 832. |      15         21          1       4          1         16 |
      |-------------------------------------------------------------|
 880. |      16         13          1       1          1         22 |
 946. |      17         21          1       4          1         12 |
 982. |      18         21          1       4          1         10 |
1012. |      19         41          0       4          0         14 |
1054. |      20         41          0       4          0         14 |
      |-------------------------------------------------------------|
1096. |      21         41          0       4          0         10 |
1126. |      22         41          0       4          0         20 |
1181. |      23         51          0       4          0         12 |
1217. |      24         51          0       4          0         14 |
1259. |      25         51          0       4          0         16 |
      |-------------------------------------------------------------|
1307. |      26         51          0       4          0         14 |
1346. |      27         41          0       4          0         24 |
1418. |      28         51          0       4          0         26 |
1496. |      29         22          0       4          1         12 |
1532. |      30         14          0       1          1         12 |
      |-------------------------------------------------------------|
1568. |      31         61          1       4          0         18 |
1622. |      32         61          1       4          0         20 |
1682. |      33         61          1       4          0         20 |
1742. |      34         61          1       4          0         20 |
      +-------------------------------------------------------------+

. 
. 
. * Table 2.1.2
. 
. * 1 good, alternating, known surplus
. 
. foreach X in -120 40 200 {
  2. 
.         display "Surplus = `X'"
  3.         
.         sum trade if alternating == 1 & goods == 1 & surplus == `X' & surplus_known == 1 & onetoone == 0
  4.         sum bargaining_rounds_raw if alternating == 1 & goods == 1 & surplus == `X' & trade == 1 & surplus_known == 1 & onetoone == 0
  5.         sum efficiency_basic if alternating == 1 & goods == 1 & surplus == `X' & surplus_known == 1 & onetoone == 0
  6.         
.         display ""
  7. }
Surplus = -120

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         71           0           0          0          0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |          0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |          0

Surplus = 40

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        142    .8098592    .3938012          0          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |        115    5.147826    2.070018          1          8

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        142    .4739437    .2962363          0          1

Surplus = 200

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         69           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |         69    3.405797    2.205067          1          8

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         69    .7594203    .2205067         .3          1


.         sum trade if alternating == 1 & goods == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        282    .6524823    .4770284          0          1

.         sum trade if alternating == 1 & goods == 1 & surplus > 0 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        211    .8720379     .334842          0          1

.         sum bargaining_rounds_raw if alternating == 1 & goods == 1 & trade == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |        184    4.494565    2.278426          1          8

.         sum efficiency_basic efficiency_basic_w_t if alternating == 1 & goods == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        211    .5672986    .3044461          0          1
efficien~w_t |        282    .6761807           0   .6761807   .6761807

.         
. 
. * 4 goods, alternating, known surplus, basic
. 
.         sum trade if alternating == 1 & goods == 4 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        284    .9753521    .1553233          0          1

.         sum bargaining_rounds_raw if alternating == 1 & goods == 4 & trade == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |        277    1.870036    1.403052          1          8

.         sum efficiency_basic efficiency_basic_w_t if alternating == 1 & goods == 4 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        284     .853169    .2137196          0          1
efficien~w_t |        284     .853169           0    .853169    .853169

. 
. * 4 goods, alternating, known surplus, one by one
. 
.         sum trade if alternating == 1 & treatment == 61

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        234    .9487179    .2210453          0          1

.         sum efficiency_basic efficiency_basic_w_t if treatment == 61

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        234    .7852015    .2394462          0          1
efficien~w_t |        234    .7852014           0   .7852014   .7852014

.         
. 
. * 1 good, open chat, known surplus
. 
. foreach X in -120 40 200 {
  2. 
.         display "Surplus = `X'"
  3.         
.         sum trade if alternating == 0 & goods == 1 & surplus == `X' & surplus_known == 1 & onetoone == 0
  4.         sum bargaining_rounds_raw if alternating == 0 & goods == 1 & surplus == `X' & trade == 1 & surplus_known == 1 & onetoone == 0
  5.         sum efficiency_basic if alternating == 0 & goods == 1 & surplus == `X' & surplus_known == 1 & onetoone == 0
  6.         
.         display ""
  7. }
Surplus = -120

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         64           0           0          0          0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |          0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |          0

Surplus = 40

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        133    .8045113    .3980758          0          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |        107    3.626168    2.345302          1          8

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        133    .5932331    .3610161          0          1

Surplus = 200

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         62           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |         62    2.806452    1.998678          1          8

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         62    .8193548    .1998677         .3          1


.         sum trade if alternating == 0 & goods == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        259    .6525097     .477095          0          1

.         sum trade if alternating == 0 & goods == 1 & surplus > 0 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        195    .8666667    .3408096          0          1

.         sum bargaining_rounds_raw if alternating == 0 & goods == 1 & trade == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |        169    3.325444    2.253437          1          8

.         sum efficiency_basic efficiency_basic_w_t if alternating == 0 & goods == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        195    .6651282    .3352401          0          1
efficien~w_t |        259    .7514673           0   .7514673   .7514673

.         
. 
. * 4 goods, open chat, known surplus
. 
.         sum trade if alternating == 0 & goods == 4 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        258     .996124    .0622573          0          1

.         sum bargaining_rounds_raw if alternating == 0 & goods == 4 & trade == 1 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |        257    1.315175    .8782769          1          6

.         sum efficiency_basic efficiency_basic_w_t if alternating == 0 & goods == 4 & surplus_known == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        258    .9256368    .1711878          0          1
efficien~w_t |        258    .9256368           0   .9256368   .9256368

. 
. * 4 goods, open chat, unknown surplus, coin toss
. 
. foreach X in 10 20 30 40 50 60 70 80 100 110 120 150 160 200 {
  2.         
.         display "Surplus = `X'"
  3.         
.         sum trade if alternating == 0 & goods == 4 & surplus == `X' & surplus_known == 0 & coin == 1 & onetoone == 0
  4.         sum bargaining_rounds if alternating == 0 & goods == 4 & surplus == `X' & trade == 1 & surplus_known == 0 & coin == 1 & onetoone == 0
  5.         sum efficiency_basic if alternating == 0 & goods == 4 & surplus == `X' & surplus_known == 0 & coin == 1 & onetoone == 0
  6.         
.         display ""
  7. }
Surplus = 10

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |          7           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |          7    3.857143    2.609506          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |          7    .7285714    .2288688         .3          1

Surplus = 20

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         24    .8333333    .3806935          0          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         20         4.4    3.118704          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         24    .5979167    .3430931          0          1

Surplus = 30

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         26    .9230769    .2717465          0          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         24    3.791667    2.750165          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         26     .701282    .2952183          0          1

Surplus = 40

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         15           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         15           6    3.464102          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         15    .6916667    .2160247         .3          1

Surplus = 50

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |          9    .8888889    .3333333          0          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |          8         1.5    .7559289          1          3

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |          9    .8444444    .3244654          0          1

Surplus = 60

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         22    .9545455    .2132007          0          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         21    3.904762    3.793478          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         22    .8030303    .3118318          0          1

Surplus = 70

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         49           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         49    5.163265    3.448109          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         49      .73207    .2234457   .2571429          1

Surplus = 80

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         32           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         32        3.75    3.436052          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         32    .8355469    .2012088         .3          1

Surplus = 100

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |          4           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |          4           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |          4           1           0          1          1

Surplus = 110

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         21           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         21    3.761905    3.448257          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         21    .8891775    .1106188   .6545454          1

Surplus = 120

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         14           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         14    4.642857    3.934212          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         14          .9    .0980036   .6666667          1

Surplus = 150

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |          7           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |          7    2.571429    2.878492          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |          7    .9285714    .0755929         .8          1

Surplus = 160

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         10           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         10         4.6    3.835507          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         10     .875625    .1232675       .625          1

Surplus = 200

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |          1           1           .          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |          1           2           .          2          2

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |          1          .9           .         .9         .9


.         sum trade if alternating == 0 & goods == 4 & surplus_known == 0 & coin == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        241     .966805    .1795183          0          1

.         sum bargaining_rounds if alternating == 0 & goods == 4 & trade == 1 & surplus_known == 0 & coin == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |        233    4.193133    3.383727          1          9

.         sum efficiency_basic efficiency_basic_w_t if alternating == 0 & goods == 4 & surplus_known == 0 & coin == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        241    .7774394    .2515561          0          1
efficien~w_t |        241    .8217366           0   .8217366   .8217366

. 
. 
. * 4 goods, open chat, unknown surplus, spin the wheel
. 
. foreach X in 40 70 100 {
  2.         
.         display "Surplus = `X'"
  3.         
.         sum trade if alternating == 0 & goods == 4 & surplus == `X' & surplus_known == 0 & wheel == 1 & onetoone == 0
  4.         sum bargaining_rounds if alternating == 0 & goods == 4 & surplus == `X' & trade == 1 & surplus_known == 0 & wheel == 1 & onetoone == 0
  5.         sum efficiency_basic if alternating == 0 & goods == 4 & surplus == `X' & surplus_known == 0 & wheel == 1 & onetoone == 0
  6.         
.         display ""
  7. }
Surplus = 40

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         79           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         79     2.78481       2.649          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         79    .8522152    .2037387         .2          1

Surplus = 70

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         79           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         79    4.265823    3.590261          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         79    .8520796    .1666149   .1714286          1

Surplus = 100

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |         85           1           0          1          1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |         85    1.764706    2.201985          1          9

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |         85    .9496471    .1415766        .36          1


.         sum trade if alternating == 0 & goods == 4 & surplus_known == 0 & wheel == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |        243           1           0          1          1

.         sum bargaining_rounds if alternating == 0 & goods == 4 & trade == 1 & surplus_known == 0 & wheel == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~s |        243    2.909465    3.027428          1          9

.         sum efficiency_basic efficiency_basic_w_t if alternating == 0 & goods == 4 & surplus_known == 0 & wheel == 1 & onetoone == 0

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |        243    .8862522    .1773558   .1714286          1
efficien~w_t |        243     .900349           0    .900349    .900349

.         
. 
. * All
. 
.         sum trade 

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |      1,801    .8800666    .3249738          0          1

.         sum trade if surplus > 0 

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
       trade |      1,666    .9513806    .2151357          0          1

.         sum bargaining_rounds_raw if trade == 1 

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
bargaining~w |      1,363    2.340426    1.915246          1          8

.         sum efficiency_basic efficiency_basic_w 

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
efficiency~c |      1,666    .7905004    .2679729          0          1
efficien~c_w |      1,801    .8151592           0   .8151592   .8151592

. 
. 
. * Table 2.2.3.1
. 
. * Test 1: Alternating treatments, known surplus, unweighted efficiency, clustered regression, period 1 only
. quietly reg efficiency_basic treat if period == 1 & alternating == 1 & surplus_known == 1 & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 83

.         display "Treatment effect = " _b[treat]
Treatment effect = .25654762

.         display "P-value = " z
P-value = .00314506

.         display "Power = " power
Power = .79143778

. 
. * Test 2: Alternating treatments, known surplus, unweighted efficiency, t-test,
. quietly ttest efficiency_basic_s_u if data_session == 1 & alternating == 1 & surplus_known == 1 & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .29212222

.         display "P-value = " r(p)
P-value = .00159964

.         display "Power = "  power
Power = .97627798

. 
. * Test 3: Alternating treatments, known surplus, unweighted efficiency, MW test
. quietly ranksum efficiency_basic_s_u if data_session == 1 & alternating == 1 & surplus_known == 1 & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .01051525

. 
. * Test 4: Alternating treatments, known surplus, unweighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_u treat period_1 - period_5 if alternating == 1 & data_period == 1 & surplus_known == 1 & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .29228054

.         display "P-value = " z
P-value = .00006599

.         display "Power = " power
Power = .98310979

. 
. * Test 5: Open chat treatments, known surplus, unweighted efficiency, clustered regression, period 1 only
. quietly reg efficiency_basic treat if period == 1 & alternating == 0 & surplus_known == 1 & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 77

.         display "Treatment effect = " _b[treat]
Treatment effect = .2304573

.         display "P-value = " z
P-value = .00202174

.         display "Power = " power
Power = .91090308

.         
. * Test 6: Open chat treatments, known surplus, unweighted efficiency, t-test
. quietly ttest efficiency_basic_s_u if data_session == 1 & alternating == 0 & surplus_known == 1 & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .2857133

.         display "P-value = " r(p)
P-value = .00015795

.         display "Power = "  power
Power = .99162633

. 
. * Test 7: Open chat treatments, known surplus, unweighted efficiency, MW test
. quietly ranksum efficiency_basic_s_u if data_session == 1 & alternating == 0 & surplus_known == 1 & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .00902344

. 
. * Test 8: Open chat treatments, known surplus, unweighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_u treat period_1 - period_5 if alternating == 0 & data_period == 1 & surplus_known == 1 & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .29113828

.         display "P-value = " z
P-value = .00003015

.         display "Power = " power
Power = .99280846

. 
. * Test 9: Open chat treatments, unknown surplus, coin flip, unweighted efficiency, clustered regression, period 1 only
. quietly reg efficiency_basic treat if period == 1 & alternating == 0 & (treatment == 14 | treatment == 41) & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 75

.         display "Treatment effect = " _b[treat]
Treatment effect = .0590965

.         display "P-value = " z
P-value = .32305985

.         display "Power = " power
Power = .88306861

.         
. * Test 10: Open chat treatments, unknown surplus, coin flip, unweighted efficiency, t-test
. quietly ttest efficiency_basic_s_u if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 41) & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .13761578

.         display "P-value = " r(p)
P-value = .00864464

.         display "Power = "  power
Power = .99238346

. 
. * Test 11: Open chat treatments, unknown surplus, coin flip, unweighted efficiency, MW test
. quietly ranksum efficiency_basic_s_u if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 41) & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .0162936

. 
. * Test 12: Open chat treatments, unknown surplus, coin flip, unweighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_u treat period_1 - period_5 if alternating == 0 & data_period == 1 & (treatment == 14 | treatment == 41) & onetoone == 0, cluste
> r(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .14328243

.         display "P-value = " z
P-value = .00402907

.         display "Power = " power        
Power = .99346835

.         
. * Test 13: Open chat treatments, unknown surplus, spin the wheel, unweighted efficiency, clustered regression, period 1 only
. quietly reg efficiency_basic treat if period == 1 & alternating == 0 & (treatment == 14 | treatment == 51) & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 75

.         display "Treatment effect = " _b[treat]
Treatment effect = .22716745

.         display "P-value = " z
P-value = .00114356

.         display "Power = " power
Power = .95231057

.         
. * Test 14: Open chat treatments, unknown surplus, spin the wheel, unweighted efficiency, t-test
. quietly ttest efficiency_basic_s_u if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 51) & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .23654103

.         display "P-value = " r(p)
P-value = .00110782

.         display "Power = "  power
Power = .99699209

. 
. * Test 15: Open chat treatments, unknown surplus, spin the wheel, unweighted efficiency, MW test
. quietly ranksum efficiency_basic_s_u if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 51) & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .00902344

. 
. * Test 16: Open chat treatments, unknown surplus, spin the wheel, unweighted efficiency, clustered regression, one observation per period,
. quietly reg efficiency_basic_p_u treat period_1 - period_5 if alternating == 0 & data_period == 1 & (treatment == 14 | treatment == 51) & onetoone == 0, cluste
> r(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .24207853

.         display "P-value = " z
P-value = .00005032

.         display "Power = " power        
Power = .99751724

.         
. * Test 17: Alternating treatments, one by one, unweighted efficiency, clustered regression, period 1 only
. quietly reg efficiency_basic treat if period == 1 & (treatment == 13 | treatment == 61), cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 74

.         display "Treatment effect = " _b[treat]
Treatment effect = .19970696

.         display "P-value = " z
P-value = .01331469

.         display "Power = " power
Power = .80822733

.         
. * Test 18:  Alternating treatments, one by one, unweighted efficiency, t-test
. quietly ttest efficiency_basic_s_u if data_session == 1 & (treatment == 13 | treatment == 61), unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 8

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .21934883

.         display "P-value = " r(p)
P-value = .00777829

.         display "Power = "  power
Power = .97723876

. 
. * Test 19: Alternating treatments, one by one, unweighted efficiency, MW test
. quietly ranksum efficiency_basic_s_u if data_session == 1 & (treatment == 13 | treatment == 61), by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 8

.         display "P-value = " (1 - normal(x)) * 2
P-value = .02092134

. 
. * Test 20: Alternating treatments, one by one, unweighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_u treat period_1 - period_5 if data_period == 1 & (treatment == 13 | treatment == 61), cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 48

.         display "Treatment effect = " _b[treat]
Treatment effect = .21945039

.         display "P-value = " z
P-value = .00092316

.         display "Power = " power        
Power = .9830999

. 
. * Test 21: Alternating treatments, known surplus, weighted efficiency, t-test, known surplus
. quietly ttest efficiency_basic_s_w if data_session == 1 & alternating == 1 & surplus_known == 1 & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .18515238

.         display "P-value = " r(p)
P-value = .01338293

.         display "Power = "  power
Power = .96397605

. 
. * Test 22: Alternating treatments, known surplus, weighted efficiency, MW test, known surplus
. quietly ranksum efficiency_basic_s_w if data_session == 1 & alternating == 1 & surplus_known == 1 & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .01051525

. 
. * Test 23: Alternating treatments, known surplus, weighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_w treat period_1 - period_5 if alternating == 1 & data_period == 1 & surplus_known == 1 & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .18554443

.         display "P-value = " z
P-value = .00248309

.         display "Power = " power
Power = .97284578

.         
. * Test 24: Open chat treatments, known surplus, weighted efficiency, t-test
. quietly ttest efficiency_basic_s_w if data_session == 1 & alternating == 0 & surplus_known == 1 & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .19790522

.         display "P-value = " r(p)
P-value = .00132777

.         display "Power = "  power
Power = .99173233

. 
. * Test 25: Open chat treatments, known surplus, weighted efficiency, MW test,
. quietly ranksum efficiency_basic_s_w if data_session == 1 & alternating == 0 & surplus_known == 1 & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .00902344

. 
. * Test 26: Open chat treatments, known surplus, weighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_w treat period_1 - period_5 if alternating == 0 & data_period == 1 & surplus_known == 1 & onetoone == 0, cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .21532154

.         display "P-value = " z
P-value = .00066216

.         display "Power = " power
Power = .98183359

. 
. * Test 27: Open chat treatments, unknown surplus, coin flip, weighted efficiency, t-test
. quietly ttest efficiency_basic_s_w if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 41) & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .0916203

.         display "P-value = " r(p)
P-value = .04272384

.         display "Power = "  power
Power = .99489866

. 
. * Test 28: Open chat treatments, unknown surplus, coin flip, weighted efficiency, MW test
. quietly ranksum efficiency_basic_s_w if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 41) & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .04720177

. 
. * Test 29: Open chat treatments, unknown surplus, coin flip, weighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_w treat period_1 - period_5 if alternating == 0 & data_period == 1 & (treatment == 14 | treatment == 41) & onetoone == 0, cluste
> r(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .10344184

.         display "P-value = " z
P-value = .02898497

.         display "Power = " power        
Power = .98884847

.         
. * Test 30: Open chat treatments, unknown surplus, spin the wheel, weighted efficiency, t-test
. quietly ttest efficiency_basic_s_w if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 51) & onetoone == 0, unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .1639686

.         display "P-value = " r(p)
P-value = .00552285

.         display "Power = "  power
Power = .99734184

. 
. * Test 31: Open chat treatments, unknown surplus, spin the wheel, weighted efficiency, MW test
. quietly ranksum efficiency_basic_s_w if data_session == 1 & alternating == 0 & (treatment == 14 | treatment == 51) & onetoone == 0, by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 10

.         display "P-value = " (1 - normal(x)) * 2
P-value = .00902344

. 
. * Test 32: Open chat treatments, unknown surplus, spin the wheel, ueighted efficiency, clustered regression, one observation per period,
. quietly reg efficiency_basic_p_w treat period_1 - period_5 if alternating == 0 & data_period == 1 & (treatment == 14 | treatment == 51) & onetoone == 0, cluste
> r(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 60

.         display "Treatment effect = " _b[treat]
Treatment effect = .1785668

.         display "P-value = " z
P-value = .00111468

.         display "Power = " power        
Power = .99259286

. 
. * Test 33: Alternating treatments, one by one, weighted efficiency, t-test
. quietly ttest efficiency_basic_s_w if data_session == 1 & (treatment == 13 | treatment == 61), unequal by(treatment)

.         scalar deg = r(N_1) + r(N_2) - 2

.         scalar tc = invttail(deg,.025)

.         scalar x = tc - (0.2 / r(se))

.         scalar power = ttail(deg, x)

.         display "Observations = " r(N_1) + r(N_2)
Observations = 8

.         display "Treatment effect = " r(mu_2) - r(mu_1)
Treatment effect = .112379

.         display "P-value = " r(p)
P-value = .06876636

.         display "Power = "  power
Power = .96462141

. 
. * Test 34: Alternating treatments, one by one, weighted efficiency, MW test
. quietly ranksum efficiency_basic_s_w if data_session == 1 & (treatment == 13 | treatment == 61), by(treatment)

.         scalar x = abs(r(z))

.         display "Observations = " r(N_1) + r(N_2)
Observations = 8

.         display "P-value = " (1 - normal(x)) * 2
P-value = .02092134

. 
. * Test 35: Alternating treatments, one by one, weighted efficiency, clustered regression, one observation per period
. quietly reg efficiency_basic_p_w treat period_1 - period_5 if data_period == 1 & (treatment == 13 | treatment == 61), cluster(session)

.         scalar deg = e(N_clust) - 1

.         scalar tc = invttail(deg, 0.025)

.         scalar x = tc - (0.2 / _se[treat])

.         scalar power = ttail(deg, x)

.         scalar y = _b[treat] / _se[treat]

.         scalar z = 2 * ttail(deg, y)

.         display "Observations = " e(N)
Observations = 48

.         display "Treatment effect = " _b[treat]
Treatment effect = .11271428

.         display "P-value = " z
P-value = .03444581

.         display "Power = " power        
Power = .97180685

. 
. 
. log close
      name:  <unnamed>
       log:  c:\data\bargaining_results.log
  log type:  text
 closed on:   9 May 2024, 14:27:46
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
